<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/x1Common.css"/>
    <!-- <script src="js/jquery-1.7.2.js"></script> -->
    <script src="js/artTemplate/template.js"></script>
    <script src="js/comment/jquery.cookie.js"></script>
    <script src="js/comment/jquery.wty.js"></script>
    <script type="text/javascript">
        $(function(){
            $.ajax({
                url: "../comp/list.do",
                async: false,
                type : "post",
                dataType : "json",
                success : function(data){/*console.info(data.data);*/
                    var $varietyContent = $('#company_list3'), varietyHtml = template('f-r', data);
                    $varietyContent.html(varietyHtml);
                    var $varietyContent = $('#n_2'), varietyHtml = template('n_1', data);
                    $varietyContent.html(varietyHtml);
                    var $varietyContent = $('#company2'), varietyHtml = template('company_list2', data);
                    $varietyContent.html(varietyHtml);
                }
            });

            ;(function($){
                var oFBox1=$('#xF1J');
                $.ajax({
                    url: "../site/list.do",
                    dataType:'json',
                    success:function(json){
                        var arr=json.data;
//                        alert(arr)
                        /*
                         // 此处不需要循环
                         $.each(arr, function(i,val){
                         oFBox1.html(html);
                         });
                         */
                        var html = '<dl>'
                                +'<dt>鸿鑫集团网站群</dt>'
                                +'<dd class="da clearFix">'
                                +'<a '+ isTargetUrl(arr[0].companysite) +' href="'+arr[0].companysite+'">'+arr[0].companyname+'</a>'
                                +'<a '+ isTargetUrl(arr[1].companysite) +' class="a1" href="'+arr[1].companysite+'">'+arr[1].companyname+'</a>'
                                +'</dd>'
                                +'<dd class="da clearFix">'
                                +'<a '+ isTargetUrl(arr[2].companysite) +' href="'+arr[2].companysite+'">'+arr[2].companyname+'</a>'
                                +'<a '+ isTargetUrl(arr[3].companysite) +' class="a2" href="'+arr[3].companysite+'">'+arr[3].companyname+'</a>'
                                +'</dd>'
                                +'<dd class="da clearFix">'
                                +'<a '+ isTargetUrl(arr[4].companysite) +' href="'+arr[4].companysite+'">'+arr[4].companyname+'</a>'
                                +'<a '+ isTargetUrl(arr[5].companysite) +' class="a2" href="'+arr[5].companysite+'">'+arr[5].companyname+'</a>'
                                +'</dd>'
                                +'<dd>'
                                +'<a '+ isTargetUrl(arr[6].companysite) +' href="'+arr[6].companysite+'">'+arr[6].companyname+'</a>'
                                +'</dd>'
                                +'<dd><a '+ isTargetUrl(arr[7].companysite) +' href="'+arr[7].companysite+'">'+arr[7].companyname+'</a></dd>'
                                +'<dd><a '+ isTargetUrl(arr[8].companysite) +' href="'+arr[8].companysite+'">'+arr[8].companyname+'</a></dd>'
                                +'</dl>'
                              /*  +' <h2>Copyright © 2016 1 1 by 鸿鑫国际集团 all rights reserved</h2> ' +
                                        '<p>京ICP备05038***号</p>'*/
                                ;
                        oFBox1.html(html);
                    }


                });
                function isTargetUrl(companysite) {
                    if(companysite!='javascript:;'){
                        //alert(companysite);
                        return ' target="_blank" ';
                    }else{
                        return '';
                    }
                }
            })(jQuery);
        });
    </script>
</head>
<body>
<div class="gBlue">
    <div class="footer">
        <div class="f-l">
            <img src="images/gFoot.png" alt=""/>
        </div>
        <div class="f-n" id="n_2">
            <script id="n_1" type="text/html">
            {{each data as value i}}
            <h2>{{value.name}}</h2>
            <p>{{value.about}}</p>
            {{/each}}
            </script>
        </div>
        <div class="l_fm">
        <div class="f-m" id="xF1J">
        </div>

            <script id="company_list2" type="text/html">
                {{each data as value i}}
                <h2>{{value.copyright}}</h2>
                <p>{{value.record}}</p>
                {{/each}}
            </script>
        <ul id="company2" class="f-m1">

        </ul>
        </div>
        <div class="f-r">
            <ul id="company_list3">
                <script id="f-r" type="text/html">
                    {{each data as value i}}
                    <li>联系电话：{{value.grouptel}}</li>
                    <li>集团客服中心：{{value.groupservicetel}}</li>
                    <li>集团邮箱：{{value.ext1}}</li>
                    <li>招聘邮箱：{{value.advertiseemail}}</li>
                    <li>集团网站：{{value.ext2}}</li>
                    <li>集团总部：{{value.groupaddress}}</li>
                    {{/each}}
                </script>
            </ul>
        </div>
    </div>
</div>
</body>
</html>